package com.xuecheng.api.cms;

import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.cms.request.QueryPageRequest;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.domain.cms.response.CmsPostPageResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import io.swagger.annotations.ApiOperation;

/**
 * Created by Aniymx on 2018/12/16 19:24.
 */


public interface CmsPageControllerApi {
    @ApiOperation("查询所有")
    public QueryResponseResult findAll(int page, int size, QueryPageRequest queryPageRequest);
    @ApiOperation("添加页面")
    public CmsPageResult addPage( CmsPage cmsPage);
    @ApiOperation("根据id查找")
    public CmsPage findById(String id);
    @ApiOperation("更新页面信息")
    public CmsPageResult updatePage(String id,CmsPage cmsPage);

    @ApiOperation("删除页面")
    public CmsPageResult deletePage(String id);
    @ApiOperation("页面发布")
    public CmsPageResult post(String id);
    @ApiOperation("保存页面")
    public CmsPageResult save(CmsPage cmsPage);
    @ApiOperation("一键发布接口")
    public CmsPostPageResult postPageQuick(CmsPage cmsPage);

}
